<template>
  <div class="window">
    <!--header-->
    <div class="windows">
      <img src="../../../assets/common/back.png" alt="" id="imgs" @click="doClick">
      <p>消息中心</p>
    </div>
    <!--page-->
    <div class="page">
      <!--新品推荐-->
      <router-link :to="{name: 'newproduct'}">
      <div class="txtsou">
        2017年06月20日10:44
      </div>
      <div class="produck">
        <h3>新品推荐</h3>
        <div class="prouse">
          <img src="../../../assets/message/huo.png" alt="">
          <p>新品上市啦!时间不多了, 赶紧行动起来吧</p>
        </div>
        <p class="produck_p">
          查看更多 <span> > </span>
        </p>
      </div>
      </router-link>
      <!--安全提醒-->
      <div class="txtsou">
        2017年06月20日10:44
      </div>
      <div class="produck">
        <h3>安全提醒</h3>
        <div class="prouse">
          <img src="../../../assets/message/jinggao.png" alt="">
          <p>近期有不法分子冒充阿拉灯客服进行诈骗,请认准阿拉灯官方客服电话10086</p>
        </div>
      </div>
      <!--收货了-->
      <div class="txtsou">
        2017年06月20日10:44
      </div>
      <div class="produck">
        <h3>收货啦</h3>
        <div class="prouse">
          <img src="../../../assets/message/huowu.png" alt="">
          <p>你的货物到站了, 请注意查收哦~</p>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
  export default {
    methods: {
      doClick() {
        this.$router.go(-1);
      },
    }
  }
</script>
<style scoped>
  a {
    font-size: 1.4rem;
    color: black;
  }
  .window {
    background: #f2f2f2;
    height: 65rem;
  }
  .windows {
    background: #e53e42;
    width: 100%;
    padding-top: 2rem;
    padding-bottom: 1.5rem;
    position: relative;
  }
  #imgs {
    height: 1.8rem;
    position: absolute;
    top: 2.4rem;
    left: 1rem;
  }
  .windows p {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 300;
    color: white;
  }
  .txtsou {
    text-align: center;
    font-size: 1.4rem;
    color: #808080;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }
  .produck h3 {
    font-size: 1.5rem;
    font-weight: 200;
    margin: 1rem;
  }
  .produck {
    background: white;
    width: 31.5rem;
    margin: auto;
    border: 1px solid #cccccc;
    border-radius: 5px;
  }
  .prouse {
    width: 29.5rem;
    margin: auto;
    overflow: hidden;
    padding-bottom: 1rem;
  }
  .produck img {
    width: 6.5rem;
    float: left;
  }
  .prouse p {
    width: 21.5rem;
    float: left;
    font-size: 1.4rem;
    margin-left: 1rem;
    color: #808080;
  }
  .produck_p {
    font-size: 1.4rem;
    margin-left: 1rem;
    color: #808080;
    line-height: 3rem;
    height: 2.5rem;
    margin-bottom: 0.7rem;
    border-top: 1px solid #808080;
  }
  .produck_p span {
    float: right;
    margin-right: 1.5rem;
  }
</style>
